package com.jzo2o.orders.dispatch.demo;

/**
 * 先距离优先，距离相同再判断评分
 *
 * @author Mr.Z
 * @version 1.0
 * @date 2023/11/24 11:56
 */
public class DistanceStrategyImpl extends AbstractStrategyImpl {
	@Override
	protected IProcessRule getRules() {
		// 构建责任链,先距离优先，距离相同再判断接单数
		IProcessRule rule = new AcceptNumRule(null);
		return new DistanceRule(rule);
	}
}